import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
    {
        path:'/Register',
        name:'Register',
        component:()=>import('../View/User/Register.vue')//用户注册页面
    },
    {
        path:'/',
        name:'login',
        component:()=>import('../View/User/login.vue')//用户登录页面
    },
    {
        path:'/Home',
        name:'Home',
        component:()=>import('../View/Home.vue')//主页面
    },
    {
        path:'/UserRegister/:U_Id',
        name:'UserRegister',
        component:()=>import('../View/User/UserRegister.vue')//用户详细信息页面
    },
    {
        path:'/InvestAdd',
        name:'InvestAdd',
        component:()=>import('../View/Invest/InvestAdd.vue')//投资项目信息添加 管理员
    },
    {
        path:'/InvestShow',
        name:'InvestShow',
        component:()=>import('../View/Invest/InvestShow.vue')//投资项目信息展示 管理员
    },
    {
        path:'/InvestEdit/:Id',
        name:'InvestEdit',
        component:()=>import('../View/Invest/InvestEdit.vue')//投资项目信息修改 管理员
    },
    {
        path:'/AddFinan',
        name:'AddFinan',
        component:()=>import('../View/Finan/AddFinan.vue')//理财项目信息添加 管理员
    },
    {
        path:'/ShowFinan',
        name:'ShowFinan',
        component:()=>import('../View/Finan/ShowFinan.vue')//理财项目信息展示 管理员
    },
    {
        path:'/EditFinan/:Id',
        name:'EditFinan',
        component:()=>import('../View/Finan/EditFinan.vue')//理财项目信息修改 管理员
    },
    {
        path:'/AddBorrow',
        name:'AddBorrow',
        component:()=>import('../View/Borrow/AddBorrow.vue')//借款项目信息添加 管理员
    },
    {
        path:'/ShowBorrow',
        name:'ShowBorrow',
        component:()=>import('../View/Borrow/ShowBorrow.vue')//借款项目信息添加 管理员
    },
    {
        path:'/EditBorrow/:Id',
        name:'EditBorrow',
        component:()=>import('../View/Borrow/EditBorrow.vue')//借款项目信息添加 管理员
    },
    {
        path:'/ShowUserInvest',
        name:'EditBoShowUserInvestrrow',
        component:()=>import('../View/Invest/ShowUserInvest.vue')//投资项目信息展示 用户
    },
    {
        path:'/UserInvestAdd/:Id',
        name:'UserInvestAdd',
        component:()=>import('../View/Invest/UserInvestAdd.vue')//投资项目信息添加 用户
    },
    {
        path:'/UserInvest',
        name:'UserInvest',
        component:()=>import('../View/Invest/UserInvest.vue')//投资项目信息展示 管理员
    },
    {
        path:'/UserInvestInfo/:Id',
        name:'UserInvestInfo',
        component:()=>import('../View/Invest/UserInvestInfo.vue')//投资项目信息明细 管理员
    },
    {
        path:'/FinanShow',
        name:'FinanShow',
        component:()=>import('../View/Finan/FinanShow.vue')//理财项目信息展示 用户
    },
    {
        path:'/AddUserFinan/:Id',
        name:'AddUserFinan',
        component:()=>import('../View/Finan/AddUserFinan.vue')//理财项目信息添加 用户
    },
    {
        path:'/UserFinanShow',
        name:'UserFinanShow',
        component:()=>import('../View/Finan/UserFinanShow.vue')//理财项目信息展示 管理员
    },
    {
        path:'/UserFinanInfo/:Id',
        name:'UserFinanInfo',
        component:()=>import('../View/Finan/UserFinanInfo.vue')//理财项目信息明细 管理员
    },
    {
        path:'/BorrowShow',
        name:'BorrowShow',
        component:()=>import('../View/Borrow/BorrowShow.vue')//借款项目信息展示 用户
    },
    {
        path:'/UserBorrow/:Id',
        name:'UserBorrow',
        component:()=>import('../View/Borrow/UserBorrow.vue')//借款项目信息添加 用户
    },
    {
        path:'/UserBorrowShow',
        name:'UserBorrowShow',
        component:()=>import('../View/Borrow/UserBorrowShow.vue')//借款项目信息展示 管理员
    },
    {
        path:'/UserRedeemShow',
        name:'UserRedeemShow',
        component:()=>import('../View/Invest/UserRedeemShow.vue')//投资项目赎回信息展示 用户
    },
    {
        path:'/AddUserInvestRedeem/:Id',
        name:'AddUserInvestRedeem',
        component:()=>import('../View/Invest/AddUserInvestRedeem.vue')//投资项目赎回信息添加 用户
    },
    {
        path:'/AllUserRedeemShow',
        name:'AllUserRedeemShow',
        component:()=>import('../View/Invest/AllUserRedeemShow.vue')//投资项目赎回信息展示 管理员
    },
    {
        path:'/UserInvestRedeemInfo/:Id',
        name:'UserInvestRedeemInfo',
        component:()=>import('../View/Invest/UserInvestRedeemInfo.vue')//投资项目赎回信息明细 管理员
    },
    {
        path:'/UserFinanRedeem',
        name:'UserFinanRedeem',
        component:()=>import('../View/Finan/UserFinanRedeem.vue')//理财项目赎回信息展示 用户
    },
    {
        path:'/AddUserFinanRedeem/:Id',
        name:'AddUserFinanRedeem',
        component:()=>import('../View/Finan/AddUserFinanRedeem.vue')//理财项目赎回信息添加 用户
    },
    {
        path:'/UserFinanRedeemShow',
        name:'UserFinanRedeemShow',
        component:()=>import('../View/Finan/UserFinanRedeemShow.vue')//理财项目赎回信息展示 管理员
    },
    {
        path:'/UserFinanRedeemData/:Id',
        name:'UserFinanRedeemData',
        component:()=>import('../View/Finan/UserFinanRedeemData.vue')//理财项目赎回信息明细 管理员
    },
    {
        path:'/ShowUserBorrowPage',
        name:'ShowUserBorrowPage',
        component:()=>import('../View/Borrow/ShowUserBorrowPage.vue')//借款项目还款信息展示 用户
    },
    {
        path:'/AddUserBorrowPage/:Id',
        name:'AddUserBorrowPage',
        component:()=>import('../View/Borrow/AddUserBorrowPage.vue')//借款项目还款信息添加 用户
    },
    {
        path:'/ShowAllUserBorrowPage',
        name:'ShowAllUserBorrowPage',
        component:()=>import('../View/Borrow/ShowAllUserBorrowPage.vue')//借款项目还款信息展示 管理员
    },
    {
        path:'/UserBorrowPageInfo/:Id',
        name:'UserBorrowPageInfo',
        component:()=>import('../View/Borrow/UserBorrowPageInfo.vue')//借款项目还款信息展示 管理员
    },
    {
        path:'/ShowUser',
        name:'ShowUser',
        component:()=>import('../View/User/ShowUser.vue')//用户基本信息展示 用户
    },
]

const router = createRouter({
    history: createWebHistory(),
    routes
})
  
export default router